package com.geeaks.learn.cas;

import java.util.List;

import com.github.crab2died.ExcelUtils;
import com.google.common.collect.Lists;

public class Excel4J {
	public static void main(String[] args) throws Exception {
		List<List<String>> list = Lists.newArrayList();
		List<String> header = Lists.newArrayList("");
		for (int i = 0; i < 10; i++) {
			List<String> _list = Lists.newArrayList();
			for (int j = 0; j < 10; j++) {
				_list.add(i + " -- " + j);
			}
			list.add(_list);
			header.add(i + "我爱");
		}
		ExcelUtils.getInstance().exportObjects2Excel(list, header, "/Users/geeaks/Desktop/test.xlsx");
	}
}
